package com.dkd.sbtz.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 对应表：asset_node_rel
 * 复合主键：(ancestor_id, descendant_id)
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AssetNodeRel implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 祖先节点ID */
    private Long ancestorId;

    /** 后代节点ID */
    private Long descendantId;

    /** 距离深度：祖先到后代的步数；自反为0 */
    private Integer depth;
}
